<?php
// 本类由系统自动生成，仅供测试用途
class JiekouAction extends Action {

	
    public function intosql(){
    	header("Content-Type:text/html; charset=utf-8");

        $alipay=D('Alipay');

        $rslt=0;

        $tm=$_GET['tm'];$mingmu=$_GET['mingmu'];$tradeno=$_GET['tradeno'];$obj=$_GET['obj'];$money=$_GET['money'];



        $arr_alipayo=$alipay->getmobyalipayno($tradeno);$alipayo=$arr_alipayo['data'];
        if(!$alipayo){$alipay->addbyalipayno($tm,$mingmu,$tradeno,$obj,$money);$rslt=1;}     
    	
        echo $rslt;
    }
    
   

}